package com.test.client.customTimeLine;

import com.google.gwt.core.client.JavaScriptObject;

/*
 * 
 * Remaining fields color: bindings["color"], textColor: bindings["textColor"], hoverText:
 * bindings["hoverText"], caption: bindings["caption"], classname: bindings["classname"], tapeImage:
 * bindings["tapeImage"], tapeRepeat: bindings["tapeRepeat"], trackNum: bindings["trackNum"] });
 */
public class TimeLineEvent extends JavaScriptObject {
	protected TimeLineEvent() {
		super();
	}

	public static TimeLineEvent create(String id, double start, double end, double latestStart, double earlistEnd, String title,
			String description, boolean instant, String eventImage, String eventLink, String eventIcon, String eventID) {

		// TODO remaining fields
		return TimeLineEventImpl.create(id, start, end, latestStart, earlistEnd, title, description, instant, eventImage, eventLink,
				eventIcon, eventID);
	}

	public static TimeLineEvent create(String id, double start, String title, String description, boolean instant, String eventImage,
			String eventIcon, String eventID) {

		return TimeLineEventImpl.create(id, start, title, description, instant, eventImage, eventIcon, eventID);

	}

	public static boolean isPresent(CustomTimeLine timeLine, long eventPk) {
		return TimeLineEventImpl.isPresent(timeLine, eventPk + "");
	}
}
